import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
          appBar: AppBar(
            title: Text('demo'),
          ),
          body: const HomeContent(),
        ),
        theme: ThemeData(primarySwatch: Colors.yellow));
  }
}

class HomeContent extends StatelessWidget {
  const HomeContent({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ListView(
      padding: EdgeInsets.all(20),
      children: <Widget>[
        Container(
          child: const Text(
            '标题名',
            textAlign: TextAlign.center,
            style: TextStyle(
              fontSize: 28,
              color: Colors.red,
            ),
          ),
          height: 40,
          padding: const EdgeInsets.fromLTRB(0, 20, 0, 20),
        ),
        Image.network(
            "https://scpic.chinaz.net/files/pic/pic9/202111/hpic4699.jpg"),
        Image.network(
            "https://scpic.chinaz.net/files/pic/pic9/202111/hpic4699.jpg"),
        Image.network(
            "https://scpic.chinaz.net/files/pic/pic9/202111/hpic4699.jpg"),
        Image.network(
            "https://scpic.chinaz.net/files/pic/pic9/202111/hpic4699.jpg"),
        Image.network(
            "https://scpic.chinaz.net/files/pic/pic9/202111/hpic4699.jpg"),
      ],
    );
  }
}

class jiange extends StatelessWidget {
  const jiange({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Text(
        '这是标签体标题名',
        textAlign: TextAlign.center,
        style: TextStyle(fontSize: 28),
      ),
      height: 40,
      padding: EdgeInsets.fromLTRB(0, 20, 0, 20),
    );
  }
}
